package gui;

import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.BorderFactory;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JTextArea;

@SuppressWarnings("serial")
public class Ventana_Lectura extends JDialog {

	private JPanel p1;
	private JTextArea texto;
	
	/* Constructor */
	public Ventana_Lectura(String msj){
		setLayout(new BorderLayout());
		
		// p1
		p1    = new JPanel(new BorderLayout());
		p1.setBorder(BorderFactory.createTitledBorder("Mensaje: "));
		texto = new JTextArea(msj);
		texto.setEditable(false);	
		
		p1.add(texto, BorderLayout.CENTER);		
		add(p1, BorderLayout.CENTER);
		
		setModal(true);
		setTitle("S.A.E.R - C.A.P (Respuesta)");
		setSize(new Dimension(700, 500));
		setResizable(false);
		setDefaultCloseOperation(DISPOSE_ON_CLOSE);
	}
	
	
}
